package com.dykj.entity;

import java.io.Serializable;

/**
 * finishedstock
 * @author 
 */
public class Finishedstock implements Serializable {
    private String itemname;

    private String k3materialnumber;

    private String itemmodal;

    private String warehousecode;

    private String warehousename;

    private String locationcode;

    private String locationname;

    private Double number;

    private String unit;

    private Double basenumber;

    private static final long serialVersionUID = 1L;

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public String getK3materialnumber() {
        return k3materialnumber;
    }

    public void setK3materialnumber(String k3materialnumber) {
        this.k3materialnumber = k3materialnumber;
    }

    public String getItemmodal() {
        return itemmodal;
    }

    public void setItemmodal(String itemmodal) {
        this.itemmodal = itemmodal;
    }

    public String getWarehousecode() {
        return warehousecode;
    }

    public void setWarehousecode(String warehousecode) {
        this.warehousecode = warehousecode;
    }

    public String getWarehousename() {
        return warehousename;
    }

    public void setWarehousename(String warehousename) {
        this.warehousename = warehousename;
    }

    public String getLocationcode() {
        return locationcode;
    }

    public void setLocationcode(String locationcode) {
        this.locationcode = locationcode;
    }

    public String getLocationname() {
        return locationname;
    }

    public void setLocationname(String locationname) {
        this.locationname = locationname;
    }

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getBasenumber() {
        return basenumber;
    }

    public void setBasenumber(Double basenumber) {
        this.basenumber = basenumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Finishedstock other = (Finishedstock) that;
        return (this.getItemname() == null ? other.getItemname() == null : this.getItemname().equals(other.getItemname()))
            && (this.getK3materialnumber() == null ? other.getK3materialnumber() == null : this.getK3materialnumber().equals(other.getK3materialnumber()))
            && (this.getItemmodal() == null ? other.getItemmodal() == null : this.getItemmodal().equals(other.getItemmodal()))
            && (this.getWarehousecode() == null ? other.getWarehousecode() == null : this.getWarehousecode().equals(other.getWarehousecode()))
            && (this.getWarehousename() == null ? other.getWarehousename() == null : this.getWarehousename().equals(other.getWarehousename()))
            && (this.getLocationcode() == null ? other.getLocationcode() == null : this.getLocationcode().equals(other.getLocationcode()))
            && (this.getLocationname() == null ? other.getLocationname() == null : this.getLocationname().equals(other.getLocationname()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getBasenumber() == null ? other.getBasenumber() == null : this.getBasenumber().equals(other.getBasenumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getItemname() == null) ? 0 : getItemname().hashCode());
        result = prime * result + ((getK3materialnumber() == null) ? 0 : getK3materialnumber().hashCode());
        result = prime * result + ((getItemmodal() == null) ? 0 : getItemmodal().hashCode());
        result = prime * result + ((getWarehousecode() == null) ? 0 : getWarehousecode().hashCode());
        result = prime * result + ((getWarehousename() == null) ? 0 : getWarehousename().hashCode());
        result = prime * result + ((getLocationcode() == null) ? 0 : getLocationcode().hashCode());
        result = prime * result + ((getLocationname() == null) ? 0 : getLocationname().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getBasenumber() == null) ? 0 : getBasenumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", itemname=").append(itemname);
        sb.append(", k3materialnumber=").append(k3materialnumber);
        sb.append(", itemmodal=").append(itemmodal);
        sb.append(", warehousecode=").append(warehousecode);
        sb.append(", warehousename=").append(warehousename);
        sb.append(", locationcode=").append(locationcode);
        sb.append(", locationname=").append(locationname);
        sb.append(", number=").append(number);
        sb.append(", unit=").append(unit);
        sb.append(", basenumber=").append(basenumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}